home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / GRAPH.SWG / 0010_JPEG.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  2KB  |  43 lines

  1. --------I-JPEG-G----------------------------
  2.  
  3. The  JPEG  image standard is a  standard for lossy (but efficient) image
  4. compression  made by the ???? Group. The endianness of the JPEG files is
  5. unknown to me, there seem to exist both types of JPEG files.
  6.  
  7. The JPEG files are block oriented, there is a header for each JPG block,
  8. but  I  was  not able to find a list  of  all blocks - so you'll have to
  9. stick with what I gathered here ;)
  10.  
  11. Format of a JPEG block (all data is in Motorola byte order) :
  12.  
  13. OFFSET              Count TYPE   Description
  14. 0000h                   1 word   Block ID
  15.                                    0FFD8h - JPEG signature block(4 chars="JFIF")
  16.                                    0FFC0h - JPEG color information
  17.                                    0FFC1h - JPEG color information
  18. 0002h                   1 word   Block size in bytes, without ID word.
  19.  
  20. Format of JPEG color information (motorola byte order) :
  21.  
  22. OFFSET              Count TYPE   Description
  23. 0000h                   1 byte   1=Grayscale image
  24. 0001h                   1 word   Height
  25. 0003h                   1 word   Width
  26.  
  27. Another try for JPEG identification could be this one :
  28.  
  29. OFFSET              Count TYPE   Description
  30. 0000h                   1 dword  ID=FFD9FFE0h
  31.                                  ID=FFD8FFE0h
  32.                                  Big endian JPEG file (Intel)
  33.                                  ID=E0FFD8FFh
  34.                                  Little endian JPEG file (Motorola)
  35.  
  36. EXTENSION:JPG
  37. OCCURENCES:PC,Amiga,SUN
  38. PROGRAMS:
  39. REFERENCE:
  40. SEE ALSO:HSI1
  41. VALIDATION:
  42.  
  43.